﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace AgencyManagerSystem.Common
{
    public static class Variable
    {
        public static string ERROR { get; set; }
        public static string SQL_HOST { get; set; }
        public static int SQL_PORT { get; set; }
        public static string SQL_DBNAME { get; set; }
        public static string SQL_CHARSET { get; set; }
        public static string SQL_USER { get; set; }
        public static string SQL_PASSWORD { get; set; }

        public static string ERP_HOST { get; set; }
        public static int ERP_PORT { get; set; }
        public static string ERP_DBNAME { get; set; }
        public static string ERP_USER { get; set; }
        public static string ERP_PASSWORD { get; set; }

        private static string _secretkey;
        public static string SECRETKEY
        {
            get { return _secretkey; }
            set
            {
                if (!String.IsNullOrWhiteSpace(_secretkey) || String.IsNullOrWhiteSpace(value))
                {
                    throw new ArgumentNullException("置入SECRETKEY错误");
                }
                else
                {
                    _secretkey = value;
                }
            }
        }
        public static string VALIDISSUER{ get; set; }
        public static string VALIDAUDIENCE { get; set; }
        public static int EXPIRES { get; set; }
       // public static string REDIS_HOST { get; set; }
      //  public static int REDIS_PORT { get; set; }
      //  public static string REDIS_PASSWORD { get; set; }
    }
}
